package com.maixun.lib_business_college.qa.new_qa

import com.maixun.lib_business_college.base.QABaseContract
import com.maixun.lib_business_college.entity.QABeen
import com.maixun.lib_network.entity.NetBaseEntity
import com.maixun.lib_network.entity.NetBaseListBeen
import io.reactivex.Observer

/**
 * @author：Lmoumou
 * @date：2020/11/4
 */
interface NewQAContract {
    interface Model : QABaseContract.BaseModel {
        /**
         * 问答列表
         * */
        fun mQADataList(
            observer: Observer<NetBaseEntity<NetBaseListBeen<QABeen>>>,
            descCode: Int?,
            typeId: String?,
            title: String?,
            current: Int
        )
    }

    interface Presenter : QABaseContract.BasePresenter {
        fun pQADataList(descCode: Int?, typeId: String?, title: String?, current: Int)
    }

    interface View : QABaseContract.BaseView {
        fun vQADataList(result: NetBaseListBeen<QABeen>?)
    }
}